<template>
  <div>
    <el-form label-width="100px">
      <el-form-item label="SPU名称"> SPU名称 </el-form-item>
      <el-form-item label="SPU名称">
        <el-input placeholder="SPU名"></el-input>
      </el-form-item>
      <el-form-item label="价格">
        <el-input placeholder="价格" type="number"></el-input>
      </el-form-item>
      <el-form-item label="重量">
        <el-input placeholder="重量"></el-input>
      </el-form-item>
      <el-form-item label="规格描述">
        <el-input placeholder="规格描述" type="textarea"></el-input>
      </el-form-item>

      <el-form-item label="平台属性">
        <el-form :inline="true" label-width="100px">
          <el-form-item label="手机系统">
            <el-select placeholder="请选择">
              <el-option value=""> </el-option>
            </el-select>
          </el-form-item>
          <el-form-item label="手机系统">
            <el-select placeholder="请选择">
              <el-option value=""> </el-option>
            </el-select>
          </el-form-item>
        </el-form>
      </el-form-item>

      <el-form-item label="销售属性">
        <el-form :inline="true" label-width="100px">
          <el-form-item label="颜色">
            <el-select placeholder="请选择">
              <el-option value=""> </el-option>
            </el-select>
          </el-form-item>
          <el-form-item label="内存">
            <el-select placeholder="请选择">
              <el-option value=""> </el-option>
            </el-select>
          </el-form-item>
        </el-form>
      </el-form-item>
      <el-form-item label="图片列表">
        <el-table border stripe>
          <el-table-column type="selection" width="55"></el-table-column>
          <el-table-column label="图片"></el-table-column>
          <el-table-column label="名称"></el-table-column>
          <el-table-column label="操作" width="200"></el-table-column>
        </el-table>
      </el-form-item>
      <el-form-item>
        <el-button type="primary" size="default">保存</el-button>
        <el-button  size="default" @click="cancel" >取消</el-button>
      </el-form-item>
    </el-form>
  </div>
</template>

<script lang="ts">
import { defineComponent } from "vue";
export default defineComponent({
  name: "SkuForm",
});
</script>

<script lang="ts" setup>
const emit =defineEmits(['setShowState'])
//点击取消回到上一页
function cancel(){
  emit('setShowState',1)
 console.log('1');
 
}

</script>


<style scoped></style>
